import java.io.*;

public class Hello implements AutoCloseable
{
	public static void main(String[] args) throws Exception
	{
		System.out.println("Before");
		try (Hello hello = new Hello())
		{
			hello.print();
		}
		System.out.println("After");
	}

	public Hello()
	{
		System.out.println("!!!Open!!!");
	}

	public void close() throws Exception
	{
		System.out.println("!!!Close!!!");
	}

	public void print()
	{
		System.out.println("Lala");
	}

}
